< previous page page_229 next page >

Page 229
the table as needed. This grid object may be the most useful selection of the three. Click the Use DBGrid Control on New Form icon to make this your default data form.
The other two icons select two versions of a standard data entry form. The first icon, Use Data Control on New Form, loads the records from the data access object one at a time, using the Visual Basic 5 data control tool. The second icon, Don't Use Data Control on New Form, presents a similar form, but without using the Visual Basic 5 data control tool. The advantage of the Data Control form is that it handles BIT and BINARY data type fields better than the No Data Control form. The No Data Control form, however, allows users to press F4 to display the entire contents of a data field whose contents overflow the control's display area. This zooming feature is handy when dealing with large text fields or memo fields.
You can switch the Form Type radio button after each table is opened and displayed, which enables you to open one or more tables using different data forms. Let's open three tables, each using a different data form.
First, select the Use DBGrid Control on New Form icon from the toolbar. Now double-click the Authors table. This action brings up the Authors table in a grid display. Your screen should look like Figure 7.9.
0229-01.jpg
Figure 7.9.
Authors table using the grid data form.
Note.gif
Please note that the columns in this view can be resized. Simply select a column divider with your mouse and drag to the desired width.

Next, select the Use Data Control on New Form button and double-click the Authors table again. Now you see the same data presented in a standard data entry from. Your screen should now look like Figure 7.10.

 
< previous page page_229 next page >

If you like this book, buy it!